﻿using System;
using System.Collections.Generic;
using Baosight.Platform.Core.UI.Controls;
using Baosight.ZNH.ZMCA.UI.Utils;
using Telerik.Windows.Controls.Charting;
using Telerik.Windows.Controls;
using Baosight.Platform.Core;
using Baosight.Platform.Core.ServiceModel;
using Baosight.ZNH.ZMCA.UI.Controls;
using System.Reflection;
using Baosight.ZNH.ZMCA.UI.Model;


namespace Baosight.ZNH.ZMCA.UI
{


    public partial class ZMCA04 : EFView
    {
        ZMCA03Controler controler = new ZMCA03Controler();
        public ZMCA04()
        {
            InitializeComponent();
            controler.PlanType = "掘进计划";
        }

        public override void Initialize(Platform.Core.EIInfo initData)
        {
            base.Initialize(initData);
            ZMCA03Controler.InitWarningPassRate(initData);

            FillGaugeData();
            FillChartData();
            FillListViewData();
        }

        private void FillListViewData()
        {
            controler.GetListViewData(lstView);
        }

        private void FillGaugeData()
        {
            controler.GetGaugeData(gauge);
        }


        public void FillChartData()
        {
            controler.GetChartData(this.chart);
        }
    }
}